﻿using System;

namespace DotnetSpider.Enterprise.Domain
{
	public interface IEntity
	{
	}

	/// <summary>
	/// 泛型实体基类
	/// </summary>
	/// <typeparam name="TPrimaryKey">主键类型</typeparam>
	public abstract class Entity<TPrimaryKey> : IEntity
	{
		/// <summary>
		/// 主键
		/// </summary>
		public virtual TPrimaryKey Id { get; set; }
	}

	/// <summary>
	/// 定义默认主键类型为Guid的实体基类
	/// </summary>
	public abstract class Entity : Entity<Guid>
	{

	}
}
